package com.haiyan.demo07_this关键字的使用总结;

public class Student {
    int num=10;
    public void show1()
    {
        int num=20;
        System.out.println(num);
        System.out.println(this.num);
    }
    public void show2()
    {
        System.out.println("show2");
        show3();
        this.show3();
    }
    public void show3()
    {
        System.out.println("show3");
    }
    public Student()
    {
        System.out.println("空参");
    }
    public Student(int num)
    {
        this();
        this.num=num;
        System.out.println("有参");
    }
}
